<!--
 * @Author: your name
 * @Date: 2022-03-22 15:08:42
 * @LastEditTime: 2022-03-22 16:57:40
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \vue_xiaoqi\src\components\InquireList.vue
-->
<template>
  <div>
    <input type="text" placeholder="请输入查询作者名字" v-model="name" />&nbsp;
    <button @click="inquire()">查询</button>&nbsp;
    <button @click="UnInquire()">取消</button>&nbsp;
  </div>
</template>

<script>
export default {
  name: "VueInquire",
  data() {
    return {
      name: "",
    };
  },
  methods: {
    inquire() {
      this.$bus.$emit("ttt", this.name);
    },
    UnInquire() {
      this.$bus.$emit("yyy",this.name="");
    },
  },
};
</script>

<style>
</style>